package com.hskn.hss.module.empPlan.vo;

import com.hskn.hss.utils.StringUtils;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 */
@Data
public class EmpActual implements Serializable {
    /**
     * 人员Id
     */
    private String empId;
    /**
     * 人员名称
     */
    private String empName;
    /**
     * 网格名称
     */
    private String gridName;
    /**
     * 完成度
     */
    private String degreeCompletion;
    /**
     * 完成度数字
     */
    private BigDecimal degreeCompletionDecimal;

    public EmpActual() {
    }

    public EmpActual(String empId, String empName, String gridName, String degreeCompletion) {
        this.empId = empId;
        this.empName = empName;
        this.gridName = gridName;
        this.degreeCompletion = degreeCompletion;
    }
    public BigDecimal getDegreeCompletionDecimal() {
        if (StringUtils.isNotEmpty(degreeCompletion)) {
            return new BigDecimal(getDegreeCompletion());
        }
        return BigDecimal.ZERO;
    }
}